/*
 * @Author: yangzr 1076420747@qq.com
 * @Date: 2023-03-20 14:24:01
 * @LastEditors: yangzr 1076420747@qq.com
 * @LastEditTime: 2023-04-12 16:31:20
 * @FilePath: \ktgj-crm\src\common\Api\env.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//根据不同的环境更改不同的baseUrl
let baseURL = '';

//开发环境下
if (process.env.NODE_ENV == 'development') {
    baseURL = '';
} else if (process.env.NODE_ENV == 'production') {
    if (process.env.VUE_APP_TITLE === 'test') {
        baseURL = '/testapi';
    } else {
        // baseURL = '';
        baseURL = '/backendapi';
    }

}

export {
    baseURL, //导出baseUrl
}